home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trouble & Attitude 4
/
Trouble and Attitude - Issue 04.iso
/
mac
/
DATA
/
MOVIES
/
COMMON.Cxt
/
00073_Field_Movie Script Template.txt
< prev
next >
Wrap
Text File
|
1997-01-14
|
7KB
|
288 lines
on enterFrame
pass
end enterFrame
on exitFrame
pass
end exitFrame
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on openControlPanel
global gMusicOn, gCaptionOn
global gControlPanel
global gCurrentFunction
set gCurrentFunction = "openControlPanel"
if objectP(gControlPanel) then
forget gControlPanel
end if
set controlPanelWidth to 336 -- can we get this value from the movie CONTROL.DIR?
set controlPanelHeight to 32 -- can we get this value from the movie CONTROL.DIR?
set horzOrigin to the stageLeft
set vertOrigin to the stageTop + 448 -- should calculate this <<<***>>>
set controlPanelRect to rect (horzOrigin, vertOrigin, horzOrigin + controlPanelWidth, ¬
vertOrigin + controlPanelHeight)
set gControlPanel to window "Control Panel"
set the rect of gControlPanel to controlPanelRect
set the fileName of gControlPanel to "CONTROL.DIR"
set the titleVisible of gControlPanel to FALSE
open gControlPanel
tell window "Control Panel"
setIconStatus "music", gMusicOn
setIconStatus "caption", gCaptionOn
end tell
end openControlPanel
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on closeControlPanel
global gControlPanel
global gCurrentFunction
set gCurrentFunction = "closeControlPanel"
if objectP(gControlPanel) then
forget gControlPanel
end if
end closeControlPanel
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on toggleMusic
global gCurrentFunction
global gMusicOn
set gCurrentFunction = "toggleMusic"
if voidP(gMusicOn) then set gMusicOn = FALSE
if gMusicOn = FALSE then
set gMusicOn = TRUE
else
set gMusicOn = FALSE
end if
tell window "Control Panel"
setIconStatus "music", gMusicOn
end tell
playMusic
end toggleMusic
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on toggleSound
global gCurrentFunction
set gCurrentFunction = "toggleSound"
end toggleSound
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on printPage
global gCurrentFunction
set gCurrentFunction = "printPage"
end printPage
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on showHelp
global gCurrentFunction
set gCurrentFunction = "showHelp"
end showHelp
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on toggleCaption
global gCaptionOn
global gCurrentFunction
set gCurrentFunction = "toggleCaption"
if voidP(gCaptionOn) then set gCaptionOn = TRUE
if gCaptionOn = FALSE then
set gCaptionOn = TRUE
else
set gCaptionOn = FALSE
end if
tell window "Control Panel"
setIconStatus "caption", gCaptionOn
end tell
end toggleCaption
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on millerTime
global gCurrentFunction
set gCurrentFunction = "millerTime"
end millerTime
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on goIndexPage
global gCurrentFunction, gCurPath
set gCurrentFunction = "goIndexPage"
go to frame "index" of movie gCurPath & "INDEX.DIR"
end goIndexPage
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on showCredits
global gCurrentFunction
set gCurrentFunction = "showCredits"
end showCredits
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on showSubscribe
global gCurrentFunction
set gCurrentFunction = "showSubscribe"
end showSubscribe
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on goFirstPage
global gCurrentFunction, gNavMode, gLastFrame, gLocalSound
set gCurrentFunction = "goFirstPage"
if gNavMode = "chapter" then
set gLocalSound = FALSE
if soundBusy(1) then sound fadeOut 1, 90
if soundBusy(2) then sound fadeOut 2, 90
go to frame "intro"
else
beep
end if
end goFirstPage
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on goPreviousPage
global gCurrentFunction, gCurPath, gNavMode, gLastFrame, gLocalSound
set gCurrentFunction = "goPreviousPage"
set destination = 0
case gNavMode of
"intro":
beep
"chapter":
if gLastFrame = 0 then
alert "goPreviousPage: internal logic error, gLastFrame=0"
end if
if the frame = label("C1") then
set destination = -1
else if the frame = label("C2") then
set destination = -1
else if the frame = label("C3") then
set destination = -1
else if the frame = label("C4") then
set destination = -1
else if the frame = label("C5") then
set destination = -1
else
set destination = 1
end if
case destination of
1:
go to frame the frame - 1
-1:
set gLocalSound = FALSE
if soundBusy(1) then sound fadeOut 1, 90
if soundBusy(2) then sound fadeOut 2, 90
set gNavMode = "intro"
go to frame "intro"
end case
end case
end goPreviousPage
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on goNextPage
global gCurrentFunction, gNavMode, gLastFrame
set gCurrentFunction = "goNextPage"
case gNavMode of
"intro":
beep
-- alert "Your already at the beginning of this story, " ¬
-- & "try clicking one of the picture icons " ¬
-- & "or to return to the Table of Contents, click the 'Trouble' icon."
"chapter":
if gLastFrame = 0 then
alert "Internal Navigation Logic Error, how did we get here?"
end if
if the frame = gLastFrame then
if soundBusy(1) then sound fadeOut 1, 80
if soundBusy(2) then sound fadeOut 2, 80
go to frame "intro"
else
go to the frame + 1
end if
end case
end goNextPage
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on toggleMovieController
global gCurrentFunction
set gCurrentFunction = "toggleMovieController"
end toggleMovieController
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
on playMusic
global gCurrentFunction, gMusicOn
if gMusicOn = TRUE then
set gCurrentFunction = "playMusic:Music is now ON"
else
set gCurrentFunction = "playMusic: Music is now OFF"
end if
end playMusic